package cn.com.shopec.erp.purchase.model;

import java.io.Serializable;

/** 
 * @ClassName: PoProductInfo 
 * @Description: 采购单货品信息
 * @author: lule
 * @date 2013-5-25 上午8:48:06
 *  
 */

public class PoProductInfo implements Serializable {
	private static final long serialVersionUID = -2580267956535033272L;
	/** 采购单号 **/
	private String poNo;
	/** 货品号 **/
	private String prodNo;
	/** 商品名称 **/
	private String commodityName;
	/** 单位 **/
	private String unit;
	/** 规格 **/
	private String specification;
	/** 采购数量 **/
	private int purQuantity;
	/** 单价 **/
	private double purUnitPrice;
	/** 供应商编号 **/
	private String purSuppNo;
	/** 供应商名称 **/
	private String purSuppName;
	/** 仓库号 **/
	private String purWhNo;
	/** 仓库名称 **/
	private String purWhName;

	/** 
	 * @return poNo 
	 */
	
	public String getPoNo() {
		return poNo;
	}
	/**
	 * @param poNo the poNo to set
	 */
	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}
	/** 
	 * @return prodNo 
	 */
	
	public String getProdNo() {
		return prodNo;
	}
	/**
	 * @param prodNo the prodNo to set
	 */
	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}
	/** 
	 * @return commodityName 
	 */
	
	public String getCommodityName() {
		return commodityName;
	}
	/**
	 * @param commodityName the commodityName to set
	 */
	public void setCommodityName(String commodityName) {
		this.commodityName = commodityName;
	}
	/** 
	 * @return unit 
	 */
	
	public String getUnit() {
		return unit;
	}
	/**
	 * @param unit the unit to set
	 */
	public void setUnit(String unit) {
		this.unit = unit;
	}
	/** 
	 * @return specification 
	 */
	
	public String getSpecification() {
		return specification;
	}
	/**
	 * @param specification the specification to set
	 */
	public void setSpecification(String specification) {
		this.specification = specification;
	}
	/** 
	 * @return purQuantity 
	 */
	
	public int getPurQuantity() {
		return purQuantity;
	}
	/**
	 * @param purQuantity the purQuantity to set
	 */
	public void setPurQuantity(int purQuantity) {
		this.purQuantity = purQuantity;
	}
	/** 
	 * @return purUnitPrice 
	 */
	
	public double getPurUnitPrice() {
		return purUnitPrice;
	}
	/**
	 * @param purUnitPrice the purUnitPrice to set
	 */
	public void setPurUnitPrice(double purUnitPrice) {
		this.purUnitPrice = purUnitPrice;
	}
	/** 
	 * @return purSuppNo 
	 */
	
	public String getPurSuppNo() {
		return purSuppNo;
	}
	/**
	 * @param purSuppNo the purSuppNo to set
	 */
	public void setPurSuppNo(String purSuppNo) {
		this.purSuppNo = purSuppNo;
	}
	/** 
	 * @return purSuppName 
	 */
	
	public String getPurSuppName() {
		return purSuppName;
	}
	/**
	 * @param purSuppName the purSuppName to set
	 */
	public void setPurSuppName(String purSuppName) {
		this.purSuppName = purSuppName;
	}
	/** 
	 * @return purWhNo 
	 */
	
	public String getPurWhNo() {
		return purWhNo;
	}
	/**
	 * @param purWhNo the purWhNo to set
	 */
	public void setPurWhNo(String purWhNo) {
		this.purWhNo = purWhNo;
	}
	/** 
	 * @return purWhName 
	 */
	
	public String getPurWhName() {
		return purWhName;
	}
	/**
	 * @param purWhName the purWhName to set
	 */
	public void setPurWhName(String purWhName) {
		this.purWhName = purWhName;
	}
	
	/**
	 * 返回采购金额  
	 */
	public double getPurAmount() {
		return this.purUnitPrice * this.purQuantity;
	}
	/* (no-Javadoc) 
	 * <p>Title: toString</p> 
	 * <p>Description: </p> 
	 * @return 
	 * @see java.lang.Object#toString() 
	 */
	
	@Override
	public String toString() {
		return "PoProductInfo [poNo=" + poNo + ", prodNo=" + prodNo
				+ ", commodityName=" + commodityName + ", unit=" + unit
				+ ", specification=" + specification + ", purQuantity="
				+ purQuantity + ", purUnitPrice=" + purUnitPrice + ", purAmount=" + this.getPurAmount()
				+ ", purSuppNo=" + purSuppNo + ", purSuppName=" + purSuppName
				+ ", purWhNo=" + purWhNo + ", purWhName=" + purWhName + "]";
	}

}
